Example #1
0
 public bool Add(Lab item)
 {
     if (_labRepository.GetSingleById(item.Id) == null && !_labRepository.Exists(m => m.Name.Trim().ToUpper() == item.Name.ToUpper()))
     {
         item.CreatedDate = DateTime.Now;
         _labRepository.Add(item);
     }
     return(true);
 }