public IActionResult PostRequest(Request data) { try { var res = _repository.AddRequest(data); return(Ok(res)); } catch (Exception error) { return(BadRequest(error)); } }
public IActionResult PostRequest(Request data) { try { var res = _repository.AddRequest(data); return(Ok(res)); } catch (Exception error) { return(BadRequest(error)); } }