コード例 #1
0
        public JsonResult <Models.SBP_BlotterBreakups> GetBlotterBreakups(int id)
        {
            EntityMapperBlotterBreakups <DataAccessLayer.SBP_BlotterBreakups, Models.SBP_BlotterBreakups> mapObj = new EntityMapperBlotterBreakups <DataAccessLayer.SBP_BlotterBreakups, Models.SBP_BlotterBreakups>();

            DataAccessLayer.SBP_BlotterBreakups dalBlotterBreakups = DAL.GetBlotterBreakups(id);
            Models.SBP_BlotterBreakups          products           = new Models.SBP_BlotterBreakups();
            products = mapObj.Translate(dalBlotterBreakups);
            return(Json <Models.SBP_BlotterBreakups>(products));
        }
コード例 #2
0
        public bool UpdateBlotterBreakups(Models.SBP_BlotterBreakups item)
        {
            bool status = false;

            if (ModelState.IsValid)
            {
                EntityMapperBlotterBreakups <Models.SBP_BlotterBreakups, DataAccessLayer.SBP_BlotterBreakups> mapObj = new EntityMapperBlotterBreakups <Models.SBP_BlotterBreakups, DataAccessLayer.SBP_BlotterBreakups>();
                DataAccessLayer.SBP_BlotterBreakups SBP_BlotterBreakupsObj = new DataAccessLayer.SBP_BlotterBreakups();
                SBP_BlotterBreakupsObj = mapObj.Translate(item);
                status = DAL.UpdateBlotterBreakups(SBP_BlotterBreakupsObj);
            }
            return(status);
        }