Exemplo n.º 1
0
        public ActionResult Details(int?id)
        {
            if (id == 0)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            var userTaskDTOs   = userTaskService.GetUserTask(id);
            var userTaskResult = MapperForCRUD(userTaskDTOs);

            if (userTaskResult == null)
            {
                return(HttpNotFound());
            }
            return(PartialView("Details", userTaskResult));
        }