public IActionResult Add(HouseOfRent houseOfRent) { var result = _houseOfRentService.Add(houseOfRent); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
public IResult Update(HouseOfRent houseOfRent) { throw new NotImplementedException(); }
public IResult Add(HouseOfRent houseOfRent) { _houseOfRentDal.Add(houseOfRent); return(new SuccessResult()); }