public bool AddOutRight(Models.SBP_BlotterOutRight blotterOR)
        {
            bool status = false;
            EntityMapperBlotterOR <Models.SBP_BlotterOutRight, DataAccessLayer.SBP_BlotterOutrights> mapObj = new EntityMapperBlotterOR <Models.SBP_BlotterOutRight, DataAccessLayer.SBP_BlotterOutrights>();

            DataAccessLayer.SBP_BlotterOutrights FRObj = new DataAccessLayer.SBP_BlotterOutrights();
            FRObj  = mapObj.Translate(blotterOR);
            status = DAL.InsertOutRight(FRObj);
            return(status);
        }
        public bool UpdateOutRight(Models.SBP_BlotterOutRight OutRight)
        {
            bool status = false;

            if (ModelState.IsValid)
            {
                EntityMapperBlotterOR <Models.SBP_BlotterOutRight, DataAccessLayer.SBP_BlotterOutrights> mapObj = new EntityMapperBlotterOR <Models.SBP_BlotterOutRight, DataAccessLayer.SBP_BlotterOutrights>();
                DataAccessLayer.SBP_BlotterOutrights OROBj = new DataAccessLayer.SBP_BlotterOutrights();
                OROBj  = mapObj.Translate(OutRight);
                status = DAL.UpdateOutRight(OROBj);
            }
            return(status);
        }
        public bool InsertOutRight(List <Models.SBP_BlotterOutRight> blotterOR)
        {
            bool status = false;

            if (ModelState.IsValid)
            {
                EntityMapperBlotterOR <Models.SBP_BlotterOutRight, DataAccessLayer.SBP_BlotterOutrights> mapObj = new EntityMapperBlotterOR <Models.SBP_BlotterOutRight, DataAccessLayer.SBP_BlotterOutrights>();
                DataAccessLayer.SBP_BlotterOutrights FRObj = new DataAccessLayer.SBP_BlotterOutrights();
                for (int i = 0; i < blotterOR.Count; i++)
                {
                    //blotterFR[i].DataType=()
                    FRObj  = mapObj.Translate(blotterOR[i]);
                    status = DAL.InsertOutRight(FRObj);
                }
            }
            return(status);
        }