public MasterController()
        {
            this._masters    = new MasterRepository();
            this.clsResponse = (ClsResponseModel <List <ClsCategoryMasterModel> >) this._masters.Get_Category();

            ViewBag.Category = clsResponse.Data.Select(x =>
                                                       new SelectListItem
            {
                Text  = x.CategoryName,
                Value = Convert.ToString(x.CategoryId)
            }
                                                       ).ToList();
        }
예제 #2
0
        public CustomerController()
        {
            this._user       = new UserRepository();
            this._product    = new ProductRepository();
            this._masters    = new MasterRepository();
            this.clsResponse = (ClsResponseModel <List <ClsCategoryMasterModel> >) this._masters.Get_Category();
            ViewBag.Category = clsResponse.Data.Select(x =>
                                                       new SelectListItem
            {
                Text  = x.CategoryName,
                Value = Convert.ToString(x.CategoryId)
            }
                                                       ).ToList();

            ViewBag.ProductDetail = this._product.GetAllProduct(Convert.ToInt32(System.Web.HttpContext.Current.Session["businessId"]));
            ClsResponseModel <List <ClsCustomerModel> > customerRes = (ClsResponseModel <List <ClsCustomerModel> >) this._user.GetCustomerDetails();

            ViewBag.Customer = customerRes.Data.Select(y => new SelectListItem
            {
                Text  = y.Name,
                Value = y.UserId
            }).ToList();
        }
 public RequisitionStaffingController(IRequisitionStaffing requisition, IMasters masters)
 {
     _requisitionstaffing = requisition;
     _imasters            = masters;
 }
 public CommonMastersController(IMasters masters)
 {
     _masters = masters;
 }
예제 #5
0
 public ApplicantController(IRequisition requisition, IApplicant applicant, IMasters masters)
 {
     _requisition = requisition;
     _applicant   = applicant;
     _imasters    = masters;
 }
예제 #6
0
 public MastersController(IMasters masters)
 {
     _imasters = masters;
 }
예제 #7
0
 public RequisitionController(IRequisition requisition, IMasters masters)
 {
     _requisition = requisition;
     _imasters    = masters;
 }
 public ApplicantStaffingController(IRequisitionStaffing requisition, IApplicantStaffing applicant, IMasters masters)
 {
     _requisitionstaffing = requisition;
     _applicantstaffing   = applicant;
     _imasters            = masters;
 }