public List <usp_getAllOrganizations_Result> GetOrganizationRecords()
 {
     using (gauravEntities context = new gauravEntities())
     {
         return(context.GetOrganizations().ToList());
     }
 }
Esempio n. 2
0
 public List <csp_getTypes_Result> GetCategoryRecord()
 {
     using (gauravEntities context = new gauravEntities())
     {
         return(context.GetCategory().ToList());
     }
 }
Esempio n. 3
0
 public bool InsertContact(Inquiry inquiryData)
 {
     using (gauravEntities context = new gauravEntities())
     {
         ObjectParameter addConfirmation = new ObjectParameter("AddConfirmation", typeof(int));
         context.AddInquiry
         (
             inquiryData.name,
             inquiryData.email_id,
             inquiryData.message,
             addConfirmation
         );
         context.SaveChanges();
         if (Convert.ToInt32(addConfirmation.Value) == 1)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
 }
Esempio n. 4
0
        public List <usp_getAllProjects_Result> GetProjectRecord()
        {
            gauravEntities context = new gauravEntities();

            return(context.GetProjects(0).ToList());
        }