示例#1
0
        public ActionResult <CommandReadDto> CreateBusiness(Business business)
        {
            _repository.CreateBusiness(business);
            _repository.SaveChanges();

            return(CreatedAtRoute(nameof(GetBusinessById), new { Id = business.Id }, business));
        }