public IActionResult Profile(EquipmentView pEquipmentAssignment) { XElement ele = GetAddress(pEquipmentAssignment.Address); if (ele != null) { pEquipmentAssignment.Latitude = ele.Element("lat").FirstNode.ToString(); pEquipmentAssignment.Longitude = ele.Element("lng").FirstNode.ToString(); } EquipmentAssignment pequipment = UserExtension.EquipmentViewToEquipment(pEquipmentAssignment); string _result = lIAssignmentInterface.UpdateEquipmentAssignment(pequipment); return(RedirectToAction("Index")); }