public async Task <IActionResult> Add([FromBody] ScheduledNotificationLogDTO scheduledNotificationLog)
        {
            var outputHandler = await _service.Add(scheduledNotificationLog);

            if (outputHandler.IsErrorOccured)
            {
                return(BadRequest(outputHandler.Message));
            }

            return(Created("", outputHandler.Message));
        }
        public async Task <OutputResponse> Add(ScheduledNotificationLogDTO scheduledNotificationLog)
        {
            var mappedScheduledNotificationLog = new AutoMapperHelper <ScheduledNotificationLogDTO, ScheduledNotificationLog>().MapToObject(scheduledNotificationLog);

            mappedScheduledNotificationLog.DateCreated = DateTime.UtcNow;

            await _context.ScheduledNotificationLog.AddAsync(mappedScheduledNotificationLog);

            await _context.SaveChangesAsync();

            return(new OutputResponse
            {
                IsErrorOccured = false,
                Message = MessageHelper.AddNewSuccess
            });
        }