Example #1
0
        public IHttpActionResult DeleteMission1(int Id)
        {
            Mission mission = new Mission();

            var missionservice = new MissionService();

            missionservice.DeleteMission(Id);

            return(Ok(mission));
        }
Example #2
0
        public IHttpActionResult DeleteMission([FromBody] Mission value)
        {
            Mission mission = new Mission();

            var missionservice = new MissionService();

            missionservice.DeleteMission(value.Id);

            return(Ok(mission));
        }
Example #3
0
        public async Task <ActionResult> DeleteConfirmed(string id)
        {
            await _missionService.DeleteMission(id);

            return(RedirectToAction("Index"));
        }