Ejemplo n.º 1
0
 /// <summary> Get Lookup Details by LookupId </summary>
 /// <param name="LookupId"></param>
 /// <returns>List of LookupDetails Object</returns>
 public List <LookupDetails> GetLookupDetailsByLookupId(int LookupId)
 {
     Logging.LogDebugMessage("Method: GetLookupDetailsByLookupId, MethodType: Get, Layer: LookupsBL, Parameters: LookupId =" + LookupId.ToString());
     try
     {
         using (LookupsDAL lookups = new LookupsDAL())
         {
             return(lookups.GetLookupDetailsByLookupId(LookupId));
         }
     }
     catch (SqlException sqlEx)
     {
         Logging.LogErrorMessage("Method: GetLookupDetailsByLookupId, Layer: LookupsBL, Stack Trace: " + sqlEx.ToString());
         throw;
     }
     catch (Exception ex)
     {
         Logging.LogErrorMessage("Method: GetLookupDetailsByLookupId, Layer: LookupsBL, Stack Trace: " + ex.ToString());
         throw;
     }
 }
Ejemplo n.º 2
0
 /// <summary> Get Lookup Details and Categories by comma seperated Lookup Names </summary>
 /// <param name="LookupNamesString">String Object</param>
 /// <returns>The DesignerLookupsWithCategories Object</returns>
 public DesignerLookupsWithCategories GetDesignerLookupsWithCategories(string LookupNamesString)
 {
     Logging.LogDebugMessage("Method: GetDesignerLookupsWithCategories, MethodType: Get, Layer: LookupsBL, Parameters: LookupNamesString =" + LookupNamesString);
     try
     {
         using (LookupsDAL lookups = new LookupsDAL())
         {
             return(lookups.GetDesignerLookupsWithCategories(LookupNamesString));
         }
     }
     catch (SqlException sqlEx)
     {
         Logging.LogErrorMessage("Method: GetDesignerLookupsWithCategories, Layer: LookupsBL, Stack Trace: " + sqlEx.ToString());
         throw;
     }
     catch (Exception ex)
     {
         Logging.LogErrorMessage("Method: GetDesignerLookupsWithCategories, Layer: LookupsBL, Stack Trace: " + ex.ToString());
         throw;
     }
 }
Ejemplo n.º 3
0
 /// <summary>This method save the lookup and lookup details by designer</summary>
 /// <param name="designerLookup">The DesignerLookup Object.</param>
 /// <returns>returns Integer Object</returns>
 public int SaveLookupByDesiger(DesignerLookup designerLookup)
 {
     Logging.LogDebugMessage("Method: SaveLookupByDesiger, MethodType: Post, Layer: LookupsBL, Parameters:  DesignerLookup = " + JsonConvert.SerializeObject(designerLookup));
     try
     {
         using (LookupsDAL lookups = new LookupsDAL())
         {
             return(lookups.SaveLookupByDesiger(designerLookup));
         }
     }
     catch (SqlException sqlEx)
     {
         Logging.LogErrorMessage("Method: SaveLookupByDesiger, Layer: LookupsBL, Stack Trace: " + sqlEx.ToString());
         throw;
     }
     catch (Exception ex)
     {
         Logging.LogErrorMessage("Method: SaveLookupByDesiger, Layer: LookupsBL, Stack Trace: " + ex.ToString());
         throw;
     }
 }
Ejemplo n.º 4
0
 /// <summary>Delete LookupDetails</summary>
 /// <param name="deletedLookupDetailsWithAdminUser">The DeletedLookupDetailsWithAdminUser Object.</param>
 /// <returns>returns Lookup Details List.</returns>
 public bool DeleteLookupDetails(DeletedLookupDetailsWithAdminUser deletedLookupDetailsWithAdminUser)
 {
     Logging.LogDebugMessage("Method: DeleteLookupDetails, MethodType: Post, Layer: LookupsBL, Parameters:  DeletedLookupDetailsWithAdminUser = "******"Method: DeleteLookupDetails, Layer: LookupsBL, Stack Trace: " + sqlEx.ToString());
         throw;
     }
     catch (Exception ex)
     {
         Logging.LogErrorMessage("Method: DeleteLookupDetails, Layer: LookupsBL, Stack Trace: " + ex.ToString());
         throw;
     }
 }
Ejemplo n.º 5
0
 /// <summary>Gets the Lookups List.</summary>
 /// <returns>returns LookupsList Object.<returns>
 public List <Lookups> GetAllLookups()
 {
     Logging.LogDebugMessage("Method: GetAllLookups, MethodType: Get, Layer: LookupsBL, Parameters: No Input Parameters");
     try
     {
         using (LookupsDAL lookups = new LookupsDAL())
         {
             return(lookups.GetAllLookups());
         }
     }
     catch (SqlException sqlEx)
     {
         Logging.LogErrorMessage("Method: GetAllLookups, Layer: LookupsBL, Stack Trace: " + sqlEx.ToString());
         throw;
     }
     catch (Exception ex)
     {
         Logging.LogErrorMessage("Method: GetAllLookups, Layer: LookupsBL, Stack Trace: " + ex.ToString());
         throw;
     }
 }
Ejemplo n.º 6
0
 /// <summary> Save or Update Lookup Details </summary>
 /// <param name="lookupDetail">LookupDetails Object</param>
 /// <returns>LookupDetails Object</returns>
 public LookupDetails SaveLookupDetails(LookupDetails lookupDetail)
 {
     Logging.LogDebugMessage("Method: SaveLookupDetails, MethodType: Post, Layer: LookupsBL, Parameters:  lookupDetails = " + JsonConvert.SerializeObject(lookupDetail));
     try
     {
         using (LookupsDAL lookups = new LookupsDAL())
         {
             return(lookups.SaveLookupDetails(lookupDetail));
         }
     }
     catch (SqlException sqlEx)
     {
         Logging.LogErrorMessage("Method: SaveLookupDetails, Layer: LookupsBL, Stack Trace: " + sqlEx.ToString());
         throw;
     }
     catch (Exception ex)
     {
         Logging.LogErrorMessage("Method: SaveLookupDetails, Layer: LookupsBL, Stack Trace: " + ex.ToString());
         throw;
     }
 }