public async Task <ActionResult> Edit(int id, trxRegistrationRequest Emp) { HttpResponseMessage responseMessage = await client.PutAsJsonAsync(url + "/" + id, Emp); if (responseMessage.IsSuccessStatusCode) { return(RedirectToAction("Index")); } return(RedirectToAction("Error")); }
public IHttpActionResult Put(int id, trxRegistrationRequest myData) { _repository.Put(id, myData); return(StatusCode(HttpStatusCode.NoContent)); }
public IHttpActionResult Post(trxRegistrationRequest myData) { _repository.Post(myData); return(Ok(myData)); }