public CompanyDetailsEntities GetCompanyDetails() { ICompanyDAL compDetials = new CompanyDAL(); var companyDAL = compDetials.GetCompanyDetails(); return(companyDAL); }
public bool?IsCompanyRegisteredForGST() { bool? result = false; ICompanyDAL companyDAL = new CompanyDAL(); var data = companyDAL.GetCompanyDetails(); if (data != null) { string regNo = data.Comp_GST_Reg_No; DateTime?comp_Gst_DeregDate = null; comp_Gst_DeregDate = data.Comp_GST_Dereg_Date; if (regNo != null && regNo != string.Empty) { if (comp_Gst_DeregDate != null) { if (comp_Gst_DeregDate < System.DateTime.UtcNow) { result = false; } else { result = true; } } else { result = true; } } else { result = false; } } return(result); }
public Company GetCompanyDetails(int companyId) => companyDal.GetCompanyDetails(companyId);