コード例 #1
0
        public IHttpActionResult GetOrderPageData()
        {
            var result = new ResponseModel();

            try
            {
                result.Data = new OrderDataPageModel()
                {
                    OrderTypes  = _dataService.GetOrderTypes(),
                    GenderTypes = _dataService.GetGenderTypes()
                };;
            }
            catch (Exception ex)
            {
                result.Errors.Add(new Error("Common", ex.Message));
            }
            return(Json(result));
        }