// DELETE api/projecttask/delete public IHttpActionResult Delete([FromBody] ProjectTaskVM projectTaskVM) { var sourceProject = _projectTaskService.GetById(projectTaskVM.Id); if (sourceProject == null) { return(NotFound()); } _projectTaskService.Remove(sourceProject); return(Ok()); }