public IServiceResults<bool> EditClass(Class model)
 {
     _class.Attach(model);
     _uow.Entry<Class>(model).State = EntityState.Modified;
     var result = _uow.SaveChanges();
     return new ServiceResults<bool>()
     {
         IsSuccessfull = result.ToBool(),
         Message = result.ToMessage(BusinessMessage.Error),
         Result = result.ToBool()
     };
 }
        public IServiceResults<Guid> AddClass(Class model)
        {
            model.ClassId = Guid.NewGuid();
            _class.Add(model);
            var saveResult = _uow.SaveChanges();

            return new ServiceResults<Guid>
            {
                IsSuccessfull = saveResult.ToBool(),
                Message = saveResult.ToMessage(BusinessMessage.Error),
                Result = model.ClassId
            };
        }