예제 #1
0
        public ActionResult Index(int id, ClaimModel cm)
        {
            List <Claim> surveyslist = new List <Claim>();

            foreach (var survey in surveyslist)
            {
                if (surveyslist.Count() == 3)
                {
                    Claim c = ClaimsService.Get(s => s.Name == survey.Name && s.Description == survey.Description && s.ClaimType == survey.ClaimType && s.status == survey.status && s.Parent.prenom == survey.Parent.prenom && s.ComplaintId == survey.ComplaintId);
                    c.Parent.Ban = 1;
                    ClaimsService.Update(c);
                    ClaimsService.Commit();
                }
            }
            return(RedirectToAction("Index"));
        }
 public Claim Get(int id)
 {
     return(claimService.Get(id));
 }