public LeaveController(IOptions <MySettingsModel> app, IDeptLeaveRequestViewService DeptleaveRequestViewService, IConfiguration rfc, ILeaveRequestViewService leaveRequestViewService, ISMSUtility smsutility, ILogger <LeaveController> logger) { appSettings = app; ApplicationSettings.WebApiUrl = appSettings.Value.WebApiBaseUrl; _rfcconfig = rfc; _IDeptLeaveRequestViewService = DeptleaveRequestViewService; _ILeaveRequestViewService = leaveRequestViewService; _SMSUtility = smsutility; _logger = logger; }