Esempio n. 1
0
 /// <summary>
 /// Update Existing
 /// </summary>
 /// <param name="load"></param>
 /// <returns></returns>
 public bool UpdateLoad(Load load)
 {
     loadRepository.Update(load);
     loadRepository.SaveChanges();
     return true;
 }
Esempio n. 2
0
 /// <summary>
 /// Delete
 /// </summary>
 /// <param name="load"></param>
 public void DeleteLoad(Load load)
 {
     loadRepository.Delete(load);
     loadRepository.SaveChanges();
 }
Esempio n. 3
0
 /// <summary>
 /// Save New
 /// </summary>
 /// <param name="load"></param>
 /// <returns></returns>
 public bool SaveLoad(Load load)
 {
     loadRepository.Add(load);
     loadRepository.SaveChanges();
     return true;
 }