public ActionResult Add(SIMREG_REQUESTEDBYViewModel model)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    _boSIMREG_REQUESTEDBY = new BOSIMREG_REQUESTEDBY();

                    var beSIMREG_REQUESTEDBY = new BESIMREG_REQUESTEDBY
                    {
                        REQUESTEDBYID = model.REQUESTEDBYID,
                        TITLE = model.TITLE,
                        IDATE = DateTime.Now,
                        IUSER = model.IUSER,
                        EDATE = DateTime.Now,
                        EUSER = model.EUSER,
                        IsNew = true
                    };

                    _boSIMREG_REQUESTEDBY.Save(beSIMREG_REQUESTEDBY);

                    return Content(Boolean.TrueString);
                }

                return Content(ExceptionHelper.ModelStateErrorFormat(ModelState));
            }
            catch (Exception ex)
            {
                ExceptionHelper.ExceptionMessageFormat(ex);
                return Content("Sorry! Unable to add this data.");
            }
        }
        //
        // GET: /REQUESTEDBY/Add
        public ActionResult Add()
        {
            try
            {
                var sIMREG_REQUESTEDBYViewModel = new SIMREG_REQUESTEDBYViewModel();

                return PartialView("_Add", sIMREG_REQUESTEDBYViewModel);

            }
            catch (Exception ex)
            {
                ExceptionHelper.ExceptionMessageFormat(ex);
                return PartialView("_Error", ex);
            }
        }
        //
        // GET: /REQUESTEDBY/Delete/by id
        public ActionResult Delete(int id)
        {
            try
            {
                _boSIMREG_REQUESTEDBY = new BOSIMREG_REQUESTEDBY();

                var sIMREG_REQUESTEDBY = _boSIMREG_REQUESTEDBY.GetSIMREG_REQUESTEDBY(id);
                if (sIMREG_REQUESTEDBY != null)
                {
                    var sIMREG_REQUESTEDBYViewModel = new SIMREG_REQUESTEDBYViewModel
                    {
                        REQUESTEDBYID = sIMREG_REQUESTEDBY.REQUESTEDBYID,
                        TITLE = sIMREG_REQUESTEDBY.TITLE,
                        //IDATE = sIMREG_REQUESTEDBY.IDATE,
                        //IUSER = sIMREG_REQUESTEDBY.IUSER,
                        //EDATE = sIMREG_REQUESTEDBY.EDATE,
                        //EUSER = sIMREG_REQUESTEDBY.EUSER
                    };

                    return PartialView("_Delete", sIMREG_REQUESTEDBYViewModel);
                }
                else
                {
                    return PartialView("_Error", "Could not found, your request data.");
                }

            }
            catch (Exception ex)
            {
                ExceptionHelper.ExceptionMessageFormat(ex);
                return PartialView("_Error", ex);
            }
        }
        public ActionResult Edit(SIMREG_REQUESTEDBYViewModel model)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    _boSIMREG_REQUESTEDBY = new BOSIMREG_REQUESTEDBY();

                    var sIMREG_REQUESTEDBY = _boSIMREG_REQUESTEDBY.GetSIMREG_REQUESTEDBY(model.REQUESTEDBYID);

                    if (sIMREG_REQUESTEDBY != null)
                    {
                        sIMREG_REQUESTEDBY.REQUESTEDBYID = model.REQUESTEDBYID;
                        sIMREG_REQUESTEDBY.TITLE = model.TITLE;
                        //sIMREG_REQUESTEDBY.IDATE = model.IDATE;
                        //sIMREG_REQUESTEDBY.IUSER = model.IUSER;
                        sIMREG_REQUESTEDBY.EDATE = DateTime.Now;
                        sIMREG_REQUESTEDBY.EUSER = model.EUSER;
                        sIMREG_REQUESTEDBY.IsNew = false;

                        _boSIMREG_REQUESTEDBY.Save(sIMREG_REQUESTEDBY);

                        return Content(Boolean.TrueString);
                    }
                    else
                    {
                        return Content("Could not found, your request data.");
                    }
                }

                return Content(ExceptionHelper.ModelStateErrorFormat(ModelState));
            }
            catch (Exception ex)
            {
                ExceptionHelper.ExceptionMessageFormat(ex);
                return Content("Sorry! Unable to edit this data.");
            }
        }