public IHttpActionResult Post(EmployeeViewModel emp)
 {
     try
     {
         emp.Create();
         return Ok("Employee " + emp.Lastname + " Created");
     } catch (Exception ex)
     {
         return BadRequest("Update failed - " + ex.Message);
     }
 }
 public IHttpActionResult Post(EmployeeViewModel emp)
 {
     try
     {
         emp.Create();
         return Ok(emp);
     }
     catch(Exception e)
     {
         return BadRequest("Create failed - " + e.Message);
     }
 }
        public void EmployeeVMCreateAndDeleteShouldReturnTrue()
        {
            bool deleteOK = false;
            EmployeeViewModel vm = new EmployeeViewModel();

            vm.DepartmentId = "56201963f748f2338c59a8c3"; // Sales Id
            vm.Email = "*****@*****.**";
            vm.Firstname = "Some";
            vm.Lastname = "Employee";
            vm.Phoneno = "(555)555-5555";
            vm.Title = "Mr.";
            vm.Create();

            if (vm.Id.Length == 24)
                deleteOK = vm.Delete();
            Assert.IsTrue(deleteOK);
        }