/// <summary> /// Convert Region Entity into Region Object /// </summary> ///<param name="model">RegionViewModel</param> ///<param name="RegionEntity">DataAccess.Region</param> ///<returns>RegionViewModel</returns> public static ProvinceViewModel ToViewModel( this DataAccess.Province entity, ProvinceViewModel model) { model.Id = entity.Id; model.CountryId = entity.CountryId; model.Name = entity.Name; model.Country = entity.Country.Name; model.IsActive = entity.IsActive; return(model); }
partial void UpdateProvince(Province instance);
partial void DeleteProvince(Province instance);
partial void InsertProvince(Province instance);