public void AddHourageRecord(Hourage hourage)
        {
            var hourageEntity = new HourageEntity();

            hourageEntity.InjectFrom(hourage);
            _hourageManagement.Create(hourageEntity);
        }
        public Hourage GetHourageById(int hourageId)
        {
            var hourageEntity = _hourageManagement.Get(hourageId);
            var hourage       = new Hourage();

            hourage.InjectFrom(hourageEntity);
            return(hourage);
        }
Exemple #3
0
 public Hourage Create(Hourage hourage)
 {
     _unitOfWork.Hourages.Add(hourage);
     _unitOfWork.SaveChanges();
     return(hourage);
 }