| | |
| | | if (content.Status) return WebResponseContent.Instance.OK(200); |
| | | else return WebResponseContent.Instance.Error(content.Message); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®IDè·ååºåºå |
| | | /// </summary>ss |
| | | [HttpPost, Route("GetById"), AllowAnonymous, MethodParamsValidate] |
| | | public async Task<WebResponseContent> GetById(int id) |
| | | { |
| | | var order = await Service.GetById(id); |
| | | if (order == null) |
| | | { |
| | | return WebResponseContent.Instance.Error("æªæ¾å°åºåºåä¿¡æ¯"); |
| | | } |
| | | return WebResponseContent.Instance.OK(null, order); |
| | | } |
| | | } |
| | | } |