コード例 #1
0
        public IActionResult Add(HouseOfRent houseOfRent)
        {
            var result = _houseOfRentService.Add(houseOfRent);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
コード例 #2
0
 public IResult Update(HouseOfRent houseOfRent)
 {
     throw new NotImplementedException();
 }
コード例 #3
0
        public IResult Add(HouseOfRent houseOfRent)
        {
            _houseOfRentDal.Add(houseOfRent);

            return(new SuccessResult());
        }