Example #1
0
        public ActionResult Create(PostClaims pc)
        {
            PostClaims p = new PostClaims
            {
                MemberID    = User.Identity.GetUserId(),
                PostID      = 1,
                DateClaim   = DateTime.Now,
                Description = pc.Description,
                Objet       = pc.Objet,
                Status      = "Not Treated yet",
            };

            ClmServ.createClaim(p);
            ClmServ.Commit();
            return(RedirectToAction("Index", "Post"));
        }
Example #2
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"));
        }