public ActionResult Detail(int id) { var email = _emailServices.GetById(id); email.Readed = true; _emailServices.Update(email); if (email == null) { return(HttpNotFound()); } // EmailVM vm = _mapper.Map<EmailVM>(email); return(View(email)); }