public ActionResult ConsultSwaper(int id) { var user = ca.ConsultSwaper(id); SwaperModels item = new SwaperModels(); item.firstname = user.firstname; item.lastname = user.lastname; item.adress = user.adress; item.email = user.email; item.Phonenumber = (int)user.Phonenumber; item.id_swapper = user.id_swapper; item.dateofbirth = user.dateofbirth; item.state = user.state; return(View(item)); }