Пример #1
0
        public async Task <int> UpdateAsync(NotificationTypeCrtVM notificationTypeCrtVM)
        {
            var notificationtype = Mapper.Map(notificationTypeCrtVM, notificationType);
            var result           = await notificationTypeRepository.UpdateAsync(notificationtype);

            return(result);
        }
Пример #2
0
        public async Task <int> CreateAsync(NotificationTypeCrtVM notificationTypeCrtVM)
        {
            var notificationTypeEntity = Mapper.Map(notificationTypeCrtVM, notificationType);
            var result = await notificationTypeRepository.AddAsync(notificationTypeEntity);

            return(result);
        }