public IActionResult Post([FromBody] SprintVM sprint) { var request = new SprintRequest { Sprint = sprint, UserId = UserId }; var response = _service.CreateSprint(request); return(response.Success ? Ok(response) : StatusCode(404, response.Errors)); }
public ActionResult DeleteSprint(SprintVM sprint) { SprintDAL.DeleteSprint(Mapper.Map <SprintDM>(sprint)); return(View()); }