// POST api/<controller>
 public void Post([FromBody]string value)
 {
     if(!(string.IsNullOrWhiteSpace(value)))
        {
     using (EmpMgmtSvc.EmployeeMgmtServiceClient svc = new EmpMgmtSvc.EmployeeMgmtServiceClient())
     {
          svc.CreateDepartment(value);
     }
        }
 }
        public ActionResult Create(FormCollection collection)
        {
            try
            {
                // TODO: Add insert logic here
                var deptName = GetDeptName(collection);
                if (!(string.IsNullOrWhiteSpace(deptName)))
                {
                    using (EmpMgmtSvc.EmployeeMgmtServiceClient svc = new EmpMgmtSvc.EmployeeMgmtServiceClient())
                    {

                        svc.CreateDepartment(deptName);
                    }
                }
                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }