Exemplo n.º 1
0
 public IActionResult DeleteMeeting(int id, GroupMeeting groupMeeting)
 {
     if (groupMeetingService.DeleteGroupMeeting(id) > 0)
     {
         return(RedirectToAction("Index"));
     }
     return(View(groupMeeting));
 }
Exemplo n.º 2
0
        public IActionResult Delete(int id, GroupMeeting groupMeeting)
        {
            var deleteResult = groupMeetingService.GetGroupMeetingById(id);

            if (groupMeetingService.DeleteGroupMeeting(id) > 0)
            {
                return(RedirectToAction("Index"));
            }
            return(View());
        }