public bool Insert(FilePut f) { WebClient client = new WebClient(); /* GetSelectByName_HttpGet */ String data = JsonConvert.SerializeObject(f); client.Headers[HttpRequestHeader.ContentType] = "application/json"; client.Headers.Add(HttpRequestHeader.AcceptCharset, "utf-8"); client.Encoding = Encoding.UTF8; String response = client.UploadString(new Uri(URL + "api/manage"), "POST", data); return(Boolean.Parse(response)); }
public IHttpActionResult Insert(FilePut f) { return(Json(new ManageBUS().InsertEmploy(f.EMPLOYEE, f.USER, f.TOKEN))); }
public IHttpActionResult Delete(FilePut f) { return(Json(new ManageBUS().DeleteEmploy(f.EMPLOYEE, f.USER, f.TOKEN))); }
public IHttpActionResult Update(FilePut f) { return(Json(new SalaryMIDDLE().Update(f.USER, f.TOKEN, f.payment))); }