Пример #1
0
 public IActionResult DeleteMeeting(int id, GroupMeeting groupMeeting)
 {
     if (groupMeetingService.DeleteGroupMeeting(id) > 0)
     {
         return(RedirectToAction("Index"));
     }
     return(View(groupMeeting));
 }
Пример #2
0
        public IActionResult Delete(int id, GroupMeeting groupMeeting)
        {
            var deleteResult = groupMeetingService.GetGroupMeetingById(id);

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