public ActionResult EditProfil(int id)
        {
            CRM_DBHP_Context db           = new CRM_DBHP_Context();
            Clienti_Profil   clientProfil = db.Clienti_Profil.Single(c => c.ID_PRE_Client == id);

            return(View(clientProfil));
        }
Exemplo n.º 2
0
        public static string GetFieldValue(string fieldName, int?id, string className)
        {
            string fieldValue = null;

            if (className == "Clienti_Profil")
            {
                CRM_DBHP_Context db     = new CRM_DBHP_Context();
                Clienti_Profil   client = db.Clienti_Profil.First(c => c.ID_PRE_Client == id);

                if (fieldName == "Nume_Client")
                {
                    fieldValue = client.Nume_Client;
                }
                ;
            }

            return(fieldValue);
        }