public static List <RegisterVeterinaryJsonObject> from(List <Veterinary> lstv) { List <RegisterVeterinaryJsonObject> lstj = new List <RegisterVeterinaryJsonObject>(); foreach (var veterinary in lstv) { lstj.Add(RegisterVeterinaryJsonObject.from(veterinary)); } return(lstj); }
public static RegisterVeterinaryJsonObject from(Veterinary v) { RegisterVeterinaryJsonObject vjson = new RegisterVeterinaryJsonObject(); vjson.VeterinaryId = v.VeterinaryId; vjson.Name = v.Name; vjson.DescripVid = v.PresentationVid; vjson.PhoneNumber = v.PhoneNumber; vjson.Longitude = Convert.ToDecimal(v.Longitude); vjson.Latitude = Convert.ToDecimal(v.Latitude); vjson.OpeningHours = v.OpeningHours; vjson.Rating = Convert.ToDecimal(v.Rate); return(vjson); }