Exemplo n.º 1
0
        public string GetInformationPhongKham(QLPHONGKHAMEntities db, string MaPhongKham, out PhongKhamDTO InformationPhongKham)
        {
            InformationPhongKham = new PhongKhamDTO();
            PHONG entity = null;

            object[] id = { MaPhongKham };
            if (phongKhamService.FindById(db, id, out entity) == Constant.RES_FAI)
            {
                return(Constant.RES_FAI);
            }
            if (entity == null)
            {
                return(Constant.RES_FAI);
            }
            BUS.Com.Utils.CopyPropertiesFrom(entity, InformationPhongKham);
            return(Constant.RES_SUC);
        }