public bool UpdateClientType(ClientType clientType)
 {
     using (var db = new CellDbContext())
     {
         try
         {
             ClientTypeDb TypeToUpdate = db.ClientTypes.Where(c => c.TypeName == clientType.TypeName).FirstOrDefault();
             TypeToUpdate.ToDTO();
             db.Entry(TypeToUpdate).State = System.Data.Entity.EntityState.Modified;
             db.SaveChanges();
             return(true);
         }
         catch (Exception ex)
         {
             System.Diagnostics.Debug.WriteLine(ex.Message);
             return(false);
         }
     }
 }