<%@ Page Title="My estimates" Language="C#" MasterPageFile="~/Models/App.master" Inherits="System.Web.Mvc.ViewPage>" %> <% if (((int)ViewData["ResponsibleCount"])>0) { %>
Les estimations que vous avez faites (<%=ViewData["ResponsibleCount"]%>):
<% foreach (Estimate estim in Model) { if (string.Compare(estim.Responsible,(string) ViewData["UserName"])==0) { %> <%= Html.ActionLink("Titre:"+estim.Title+" Client:"+estim.Client,"Estimate",new{id=estim.Id}) %>
<% }}%>
<% } %> <% if (((int)ViewData["ClientCount"])>0) { %>
Vos estimations en tant que client (<%=ViewData["ClientCount"]%>):
<% foreach (Estimate estim in Model) { %> <%= Html.ActionLink("Titre:"+estim.Title+" Responsable:"+estim.Responsible,"Estimate",new{id=estim.Id}) %>
<% } %>
<% } %>