Index: branches/Abonament/Wierszowki/Wierszowki.Web/Views/MagazineItem/Confirm.aspx
===================================================================
--- branches/Abonament/Wierszowki/Wierszowki.Web/Views/MagazineItem/Confirm.aspx (revision 839)
+++ branches/Abonament/Wierszowki/Wierszowki.Web/Views/MagazineItem/Confirm.aspx (revision 854)
@@ -1,4 +1,4 @@
-<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Wierszowki.Core.Linq.Author>" %>
-
+<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Wierszowki.Models.ConfirmViewData>" %>
+<%@ Import Namespace ="Wierszowki.Models" %>
 <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
 	Potwierdzenie dodania wierszówki
@@ -6,23 +6,67 @@
 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 <%
-    if (ViewData["message"] == "delete")
+    if (ViewData.Model.akcja == OperationType.Delete)
     {
 %>
-        <h4>Pomylnie usuniêto wierszówkê!</h4>
-<%
-    }
-    else if(ViewData["message"] == "null"){
-%>
-        <h6>Nie mo¿na wykonaæ operacji. B³êdny numer id!!! </h6>
+        <h2>Pomylnie usuniêto wierszówkê!</h2>
 <%  }
-    else
+    else if (ViewData.Model.akcja == OperationType.WrongId)
     {
 %>
-    <h2>Pomylnie dodano/zaktualizowano wierszówkê dla: <%= Html.Encode(ViewData.Model.FirstName + " " + ViewData.Model.LastName)%></h2>
+        <h2>Nie mo¿na wykonaæ operacji. B³êdny numer id!!! </h2> 
+<%  }
+    else if (ViewData.Model.akcja == OperationType.NullId)
+    {
+%>
+        <h2>Nie mo¿na wykonaæ operacji, gdy¿ nie podano numeru id wierszówki!!! </h2>
+<%  }        
+    else if (ViewData.Model.akcja == OperationType.Update)
+    {
+%>
+        <h2>Pomylnie zaktualizowano wierszówkê dla: <%= Html.Encode(ViewData.Model.Author.FirstName + " " + ViewData.Model.Author.LastName)%></h2>
 <%     
     }
+    else if (ViewData.Model.akcja == OperationType.Create)
+    {
 %>
-    <div>
-        <%=Html.ActionLink("Powrót", "Index", "Report") %>
+        <h2>Pomylnie dodano wierszówkê dla: <%= Html.Encode(ViewData.Model.Author.FirstName + " " + ViewData.Model.Author.LastName)%></h2>
+<% 
+    }
+    
+%>
+    <div>    
+        <% 
+        if (ViewData.Model.info != null)
+        {
+            if (ViewData.Model.info.powrot == "2" && (ViewData.Model.akcja == OperationType.Delete || ViewData.Model.akcja == OperationType.Update))
+            {
+                var sciezka = "All/" + ViewData.Model.info.year + "/" + ViewData.Model.info.month + "/" + ViewData.Model.info.user_id; 
+        %>
+                <%=Html.ActionLink("Powrót", sciezka, "Report")%> |  
+                <%=Html.ActionLink("Raporty", "Index", "Report")%>  
+        <%
+            }
+            else if (ViewData.Model.info.powrot == "1" && (ViewData.Model.akcja == OperationType.Delete || ViewData.Model.akcja == OperationType.Update))
+            {
+        %>
+                <%=Html.ActionLink("Powrót", "ToPrice", "Report")%> |
+                <%=Html.ActionLink("Strona G³ówna", "Index", "Home")%>        
+        <%
+            }
+        }
+        if (ViewData.Model.akcja == OperationType.Create)
+        {
+        %>
+            <%=Html.ActionLink("Powrót", "Index", "Home")%> |
+            <%=Html.ActionLink("Dodaj now¹ wierszówkê", "Create", "MagazineItem")%>
+        <% 
+        }
+        else if (ViewData.Model.akcja == OperationType.WrongId || ViewData.Model.akcja == OperationType.NullId)
+        {
+        %>
+            <%=Html.ActionLink("Strona G³ówna", "Index", "Home")%>   
+        <%   
+        }    
+        %>        
     </div>
 </asp:Content>
