public async Task <int> UpdateAsync(NotificationTypeCrtVM notificationTypeCrtVM) { var notificationtype = Mapper.Map(notificationTypeCrtVM, notificationType); var result = await notificationTypeRepository.UpdateAsync(notificationtype); return(result); }
public async Task <int> CreateAsync(NotificationTypeCrtVM notificationTypeCrtVM) { var notificationTypeEntity = Mapper.Map(notificationTypeCrtVM, notificationType); var result = await notificationTypeRepository.AddAsync(notificationTypeEntity); return(result); }