Exemplo n.º 1
0
 public Object EditRecord(Int64 communID)
 {
     CommunicationMaster _commun = new CommunicationMaster();
     try
     {
         Communication commun = DAL.DALCommunication.EditCommunication(Convert.ToInt32(communID));
         _commun.ID = commun.ID;
         if (!String.IsNullOrEmpty(commun.CommunicationName))
         {
             _commun.CommunicationName = commun.CommunicationName;
         }
         if (!String.IsNullOrEmpty(commun.Description))
         {
             _commun.Description = commun.Description;
         }
     }
     catch (Exception ex)
     {
         throw;
     }
     return _commun;
 }
Exemplo n.º 2
0
 public static bool UpdateCommunication(CommunicationMaster commun)
 {
     Boolean flag = false;
     try
     {
         Icontext objinter = new BALCommunication();
         flag = objinter.UpdateRecord(commun);
     }
     catch (Exception ex)
     {
         throw;
     }
     return flag;
 }