public ActionResult Create(AssignViewModel assignviewmodel) { assignviewmodel.Emp_Id = assignviewmodel.Emp_Id.Replace(" ", String.Empty); assignviewmodel.Device_Id = assignviewmodel.Device_Id.Replace(" ", String.Empty); assignmentservie.AddAssign(assignviewmodel); return(RedirectToAction("Index")); }