public ResponseModel Delete(TestRequestModel model) { _data.RemoveAt(model.Id); return(new ResponseModel { StatusCode = HttpStatusCode.NoContent }); }
public ResponseModel Post(TestRequestModel model) { _data.Add(new TestResponseModel(model.Value)); return(new ResponseModel { StatusCode = HttpStatusCode.Created }); }
public Task <ResponseModel> Delete(TestRequestModel model) { _data.RemoveAt(model.Id); return(Task.FromResult(new ResponseModel { StatusCode = HttpStatusCode.NoContent })); }
public Task <ResponseModel> Post(TestRequestModel model) { _data.Add(new TestResponseModel(model.Value)); return(Task.FromResult(new ResponseModel { StatusCode = HttpStatusCode.Created })); }
public ResponseModel Put(TestRequestModel model) { _data[model.Id].Name = model.Value; return(_data[model.Id].CreateResponse()); }
public ResponseModel Get(TestRequestModel model) { return(_data[model.Id].CreateResponse()); }
public Task <ResponseModel> Put(TestRequestModel model) { _data[model.Id].Name = model.Value; return(Task.FromResult(_data[model.Id].CreateResponse())); }
public Task <ResponseModel> Get(TestRequestModel model) { return(Task.FromResult(_data[model.Id].CreateResponse())); }