public HttpResponseMessage InsertEmployee(FormDataCollection frm) { HttpResponseMessage response = new HttpResponseMessage(); string Firsname = frm.Get("EmpFirstName"); string LastName = frm.Get("EmpLastName"); string deg = frm.Get("EmpDesignation"); string latlong = frm.Get("LatLong"); string Password = frm.Get("password"); int val = 0; try { val = objEmp.InserEmployeeData(Firsname, LastName, deg, latlong, Password); response = this.Request.CreateResponse(HttpStatusCode.OK, new { IsSaved = Convert.ToString(val) }); } catch (Exception) { throw; } return(response); }