예제 #1
0
        public CompanyDetailsEntities GetCompanyDetails()
        {
            ICompanyDAL compDetials = new CompanyDAL();
            var         companyDAL  = compDetials.GetCompanyDetails();

            return(companyDAL);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public Company GetCompanyDetails(int companyId) => companyDal.GetCompanyDetails(companyId);