Пример #1
0
        public async Task <JsonResult> CreateAsync(CheckDupAddModel model)
        {
            var result = await _bizCheckDup.CreateAsync(model, GlobalData.User.IDUser);

            return(ToJsonResponse(result.IsSuccess, result.Message, result.Data));
        }
Пример #2
0
        public async Task <IActionResult> CreateAsync([FromBody] CheckDupAddModel model)
        {
            var result = await _bizCheckDup.CreateAsync(model);

            return(ToResponse(result));
        }