예제 #1
0
        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));
        }
예제 #2
0
 public IHttpActionResult Insert(FilePut f)
 {
     return(Json(new ManageBUS().InsertEmploy(f.EMPLOYEE, f.USER, f.TOKEN)));
 }
예제 #3
0
 public IHttpActionResult Delete(FilePut f)
 {
     return(Json(new ManageBUS().DeleteEmploy(f.EMPLOYEE, f.USER, f.TOKEN)));
 }
예제 #4
0
 public IHttpActionResult Update(FilePut f)
 {
     return(Json(new SalaryMIDDLE().Update(f.USER, f.TOKEN, f.payment)));
 }