public async Task <bool> AddASync(AnnouncementUser announcementUsers) { try { await _AnnouncementUser.AddAsyn(announcementUsers); return(true); } catch (Exception) { return(false); } }
public static AnnouncementUserViewModel ToModel(this AnnouncementUser announcementUser) { return(Mapper.Map <AnnouncementUserViewModel>(announcementUser)); }
public void RemoveAnnouncementUser(AnnouncementUser AnnouncementUser) { AnnouncementUser.IsDeleted = true; //context.Remove(AnnouncementUser); }
public void AddAnnouncementUser(AnnouncementUser AnnouncementUser) { context.AnnouncementUser.Add(AnnouncementUser); }
public void DeleteAllUser(AnnouncementUser model) { _announcementUserRepository.Delete(model); }