Example #1
0
 public void Add(MSDS_Customer entity)
 {
     if (_context.MSDS_Customer.Any(x=> x.Phone == entity.Phone))
     {
         throw new Exception(string.Format("该手机号已被注册"));
     }
     _context.MSDS_Customer.Add(entity);
 }
Example #2
0
 public void Delete(MSDS_Customer entity)
 {
     _repository.Delete(entity);
 }
Example #3
0
 public void Add(MSDS_Customer entity)
 {
     _repository.Add(entity);
 }
Example #4
0
 public void Delete(MSDS_Customer entity)
 {
     _context.MSDS_Customer.Remove(entity);
 }