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));
        }
Exemple #2
0
 public ActionResult DeleteSprint(SprintVM sprint)
 {
     SprintDAL.DeleteSprint(Mapper.Map <SprintDM>(sprint));
     return(View());
 }