public async Task <ActionResult> Edit(int id, trxDocumentMandatory Emp)
        {
            HttpResponseMessage responseMessage = await client.PutAsJsonAsync(url + "/" + id, Emp);

            if (responseMessage.IsSuccessStatusCode)
            {
                return(RedirectToAction("Index"));
            }
            return(RedirectToAction("Error"));
        }
Exemplo n.º 2
0
 public IHttpActionResult Put(int id, trxDocumentMandatory myData)
 {
     _repository.Put(id, myData);
     return(StatusCode(HttpStatusCode.NoContent));
 }
Exemplo n.º 3
0
 public IHttpActionResult Post(trxDocumentMandatory myData)
 {
     _repository.Post(myData);
     return(Ok(myData));
 }