Exemplo n.º 1
0
 /// <summary>
 /// The Delete
 /// </summary>
 /// <param name="entity">The entity<see cref="Standard"/></param>
 /// <returns>The <see cref="ServiceResult"/></returns>
 public ServiceResult Delete(Standard entity)
 {
     try
     {
         _repository.Delete(entity);
         return(new ServiceResult(true));
     }
     catch (Exception ex)
     {
         return(new ServiceResult(false)
         {
             Error = ex.ToString()
         });
     }
 }
Exemplo n.º 2
0
 public void RemoveStandard(Standard standard)
 {
     _standardRepository.Delete(standard);
 }
        } //close updateStandard(...)

        public void removeStandard(Standard removeStandardItem)
        {
            _standardRepository.Delete(removeStandardItem);
        } //close removeStandard(...)
 public void removeStandard(Standard objStandard)
 {
     _standardRepository.Delete(objStandard);
 }
Exemplo n.º 5
0
 public void RemoveStandard(Standard standard)
 {
     standardRepository.Delete(standard);
     //throw new NotImplementedException();
 }
Exemplo n.º 6
0
 public void RemoveStandard(Standard departments)
 {
     standardRepository.Delete(departments);
 }