コード例 #1
0
        public async Task <ApiResponseBase> Add(int id, [FromBody] ApiProdAction model)
        {
            if (!ModelState.IsValid)
            {
                return(ModelState.ToApiBaseResponse());
            }

            var user = await GetCurrentUserAsync();

            _houseRepo.AddProduct(user?.Id, id, model);
            return(new ApiResponseBase());
        }