public JsonResult <Models.Branches> GetBranches(int id)
        {
            EntityMapperBranches <DataAccessLayer.Branches, Models.Branches> mapObj = new EntityMapperBranches <DataAccessLayer.Branches, Models.Branches>();

            DataAccessLayer.Branches dalBranches = DAL.GetBranches(id);
            Models.Branches          products    = new Models.Branches();
            products = mapObj.Translate(dalBranches);
            return(Json <Models.Branches>(products));
        }
        public bool UpdateBranches(Models.Branches item)
        {
            bool status = false;

            if (ModelState.IsValid)
            {
                EntityMapperBranches <Models.Branches, DataAccessLayer.Branches> mapObj = new EntityMapperBranches <Models.Branches, DataAccessLayer.Branches>();
                DataAccessLayer.Branches BranchesObj = new DataAccessLayer.Branches();
                BranchesObj = mapObj.Translate(item);
                status      = DAL.UpdateBranches(BranchesObj);
            }
            return(status);
        }