public IActionResult Add()
        {
            AddEmployerViewModel addEmployerViewModel = new AddEmployerViewModel();

            return(View(addEmployerViewModel));
        }
Exemplo n.º 2
0
 public IActionResult Add()
 {
     AddEmployerViewModel viewModel = new AddEmployerViewModel();
     return View(viewModel);
 }
 public IActionResult Add(AddEmployerViewModel addEmployerViewModel)
 {
     return(View(addEmployerViewModel));
 }
Exemplo n.º 4
0
        public void AddEmployer(AddEmployerViewModel model)
        {
            try
            {
                if (model != null)
                {
                    MasterEmployer entity = new MasterEmployer();
                    entity.CompanyName        = model.CompanyName;
                    entity.CountryRowID       = model.CountryRowID;
                    entity.StateRowID         = model.StateRowID;
                    entity.DistrictRowID      = model.DistrictRowID;
                    entity.AdditionalComments = model.AdditionalComments;
                    entity.AdditionalCost     = model.AdditionalCost;
                    entity.AdditionalCosting  = model.AdditionalCosting;
                    entity.ConcernPersonName  = model.ConcernPersonName;
                    //entity.DDFavourOf = model.DDFavourOf;
                    entity.CompanyLegalStatus = model.CompanyLegalStatus;
                    entity.CINNumber          = model.CINNumber;
                    entity.RegisteredOnMCA    = model.RegisteredOnMCA;
                    entity.PaidUpCapital      = model.PaidUpCapital;
                    entity.MandatoryDocument  = model.MandatoryDocument;
                    entity.PVInitiated        = model.PVInitiated;
                    entity.PVInitAtAddress    = model.PVInitAtAddress;
                    entity.OtherDocumentNo    = model.OtherDocumentNo;
                    entity.DesigConcernPerson = model.DesigConcernPerson;
                    entity.LocationRowID      = model.LocationRowID;
                    // entity.CityRowID = model.CityRowID;
                    entity.Website            = model.Website;
                    entity.CompanyStatus      = model.CompanyStatus;
                    entity.CompanyAddress     = model.CompanyAddress;
                    entity.SpecialInstruction = model.SpecialInstruction;
                    entity.ModeOfInitiation   = model.ModeOfInitiation;
                    entity.ModeOfPayment      = model.ModeOfPayment;
                    entity.OfficialEmailId    = model.OfficialEmailId;
                    entity.OfficialLandlineNo = model.OfficialLandlineNo;
                    entity.MobileNo           = model.MobileNo;
                    entity.Other1             = model.Other1;
                    entity.Other2             = model.Other2;
                    entity.Other3             = model.Other3;
                    entity.Other4             = model.Other4;
                    entity.Other5             = model.Other5;
                    // entity.VerificationProcessTAT = model.VerificationProcessTAT;
                    entity.FavourOf              = model.FavourOf;
                    entity.OtherDocumentDetail   = model.OtherDocumentDetail;
                    entity.COtherStatus          = model.COtherStatus;
                    entity.COtherLegalStatus     = model.COtherLegalStatus;
                    entity.OtherInitiation       = model.OtherInitiation;
                    entity.PayableAT             = model.PayableAT;
                    entity.AccountNumber         = model.AccountNumber;
                    entity.IFSCCode              = model.IFSCCode;
                    entity.CompanySnapshot       = model.Snapshot;
                    entity.VerificationTATLevel1 = model.VerificationTATLevel1;
                    entity.VerificationTATLevel2 = model.VerificationTATLevel2;
                    entity.MCARegProof           = model.MCARegProof;
                    entity.PVInitAtAddressProof  = model.PVInitAtAddressProof;
                    entity.OtherDocumentAdded    = model.OtherDocumentAdded;
                    entity.OtherDocProof         = model.OtherDocProof;
                    entity.ModifiedDate          = model.ModifiedDate;

                    db.MasterEmployers.Add(entity);
                }
                else
                {
                    throw new Exception("Employer could not be blank!");
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
        public IActionResult Add()
        {
            AddEmployerViewModel NewEmployerView = new AddEmployerViewModel();

            return(View(NewEmployerView));
        }
Exemplo n.º 6
0
        public IActionResult Add()
        {
            var vm = new AddEmployerViewModel();

            return(View(vm));
        }
        public IActionResult Add()
        {
            AddEmployerViewModel viewModel = new AddEmployerViewModel(); // TO DO: Part 2 Controllers #3 - Create an instance of AddEmployerViewModel inside of the Add() method

            return(View(viewModel));                                     //TO DO: Part 2 Controllers #3 - and pass the instance into the View() return method.
        }
Exemplo n.º 8
0
        public IActionResult Add(string name, string location)
        {
            AddEmployerViewModel employerModel = new AddEmployerViewModel(name, location);

            return(View(employerModel));
        }
Exemplo n.º 9
0
        public IActionResult Add()
        {
            AddEmployerViewModel employer = new AddEmployerViewModel();

            return(View(employer));
        }
        public IActionResult Add()
        {
            AddEmployerViewModel viewmodel = new AddEmployerViewModel(context.Employers.ToList());

            return(View(viewmodel));
        }