public async Task <ActionResult <EmailResponseObj> > LeftOverReminder(int SwitchValue) { try { var done = await _appSettingService.LeftOverReminder(SwitchValue); return(new EmailResponseObj { IsSuccessful = done ? true : false, Status = new APIResponseStatus { IsSuccessful = done ? true : false, } }); } catch (Exception ex) { var errorId = ErrorID.Generate(4); _logger.LogInformation($"ApplicationSettingController{errorId}", $"Error Message{ ex?.InnerException?.Message ?? ex?.Message}"); return(new EmailResponseObj { Status = new APIResponseStatus { IsSuccessful = false, Message = new APIResponseMessage { FriendlyMessage = "Something went wrong", MessageId = $"ApplicationSettingController{errorId}", TechnicalMessage = ex?.InnerException?.Message ?? ex?.Message } } }); } }