Beispiel #1
0
        /// <summary>
        /// [Tin.Nguyen] - Lấy dữ liệu Tủ Đồ(Lau_Locker) theo Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Lau_MarkerModel GetById(Guid id)
        {
            string        status  = string.Empty;
            var           model   = new Lau_MarkerModel();
            ActionService service = new ActionService(UserLogin);
            var           entity  = service.GetByIdUseStore <LMS_MarkerEntity>(id, ConstantSql.hrm_lau_sp_get_MarkerById, ref status);

            if (entity != null)
            {
                model = entity.CopyData <Lau_MarkerModel>();
            }
            model.ActionStatus = status;
            return(model);
        }
Beispiel #2
0
        public Lau_MarkerModel Post([Bind] Lau_MarkerModel model)
        {
            ActionService service = new ActionService(UserLogin);

            return(service.UpdateOrCreate <LMS_MarkerEntity, Lau_MarkerModel>(model));
        }