public async Task <IActionResult> PostAddPropertyTermsAsync([FromBody] PropertyTermsModel obj) { if (!ModelState.IsValid) { return(BadRequest()); } var request = await _propertyService.AddPropertyTermsAsync(obj); _responseModel.Status = request.Status; _responseModel.Message = request.Message; if (_responseModel.Status) { return(Ok(_responseModel)); } else { return(BadRequest(_responseModel)); } }