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));
 }
Пример #3
0
 public void RemoveAnnouncementUser(AnnouncementUser AnnouncementUser)
 {
     AnnouncementUser.IsDeleted = true;
     //context.Remove(AnnouncementUser);
 }
Пример #4
0
 public void AddAnnouncementUser(AnnouncementUser AnnouncementUser)
 {
     context.AnnouncementUser.Add(AnnouncementUser);
 }
Пример #5
0
 public void DeleteAllUser(AnnouncementUser model)
 {
     _announcementUserRepository.Delete(model);
 }