コード例 #1
0
        public async Task <IActionResult> GetMissions(int?CategoryId = 0, string City = "", string MisName = "", int?MisStatus = 0, int?CurrentPage = 0, int?PageSize = 0, string OrderByColumn = "", int?IsAscending = 0, int?TotalRecords = 0)
        {
            ListMissions oResult = new ListMissions();

            try
            {
                oResult.listMissions = await _svc.GetAllAsync(CategoryId, City, MisName, MisStatus, CurrentPage, PageSize, OrderByColumn, IsAscending, TotalRecords);

                oResult.ErrorCode = (int)ExceptionType.SUCCESS;
                oResult.ErrorDesc = ExceptionType.SUCCESS.ToString();
            }
            catch (Exception ex)
            {
                oResult.ErrorCode = (int)ExceptionType.CATCH;
                oResult.ErrorDesc = ex.ToString();
            }
            return(Ok(oResult));
        }