public async virtual Task<Students> Add(Students s) { s = new Students(); s.Name = "ss"; s.Age = 11; s.Id = Guid.NewGuid(); s.CreationTime = new DateTime(0, 1, 1); return await _studentRepository.InsertAsync(s); }
public virtual void Update(Students student) { _studentRepository.Update(student); }
public virtual void Delete(Students s) { _studentRepository.Delete(s); }
public virtual void TransactionMethod(Students s) { _studentRepository.InsertAsync(s); _uowManger.Current.SaveChanges(); throw new Exception("dc"); }