public TblEmployeeRole DeleteRole(int Id) { try { return(employee.DeleteRole(Id)); } catch (Exception ex) { StaticHelper.LogException(path: up.GetLogFilePath(), errorMessage: ex.Message, methodName: $"Class Name: {nameof(EmployeePresenter)} - Method name: {nameof(DeleteRole)}", stackTrace: ex.StackTrace); return(null); } }