public ActionResult Create(ComplaintViewModel comp) { complaint c = new complaint(); c.Description = comp.Description; c.creationDate = DateTime.Now; c.Subject = comp.Subject; c.importanceLvl = comp.importanceLvl; c.MyUser_idUser = (int)comp.MyUser_idUser; //c.user = us.GetById((int)comp.MyUser_idUser); cs.Add(c); cs.Commit(); return(RedirectToAction("Index")); }