Exemple #1
0
 /// <summary>
 ///  Create web model from entity
 /// </summary>
 public static Models.PowerSterringOil CreateFrom(this MainDomain.PowerSterringOil source)
 {
     return(new Models.PowerSterringOil
     {
         PowerStereringOilId = source.PowerStereringOilId,
         PowerSterringOilCompany = source.PowerSterringOilCompany,
         PowerSterringOilName = source.PowerSterringOilName,
         PowerSterringOilPrice = source.PowerSterringOilPrice
     });
 }
 public PowerSterringOil Save(PowerSterringOil oil)
 {
     return _powerSterringOilRepository.Save(oil);
 }