public IHttpActionResult DeleteMission1(int Id) { Mission mission = new Mission(); var missionservice = new MissionService(); missionservice.DeleteMission(Id); return(Ok(mission)); }
public IHttpActionResult DeleteMission([FromBody] Mission value) { Mission mission = new Mission(); var missionservice = new MissionService(); missionservice.DeleteMission(value.Id); return(Ok(mission)); }
public async Task <ActionResult> DeleteConfirmed(string id) { await _missionService.DeleteMission(id); return(RedirectToAction("Index")); }