/// <summary> /// /// </summary> /// <param name="labOrderId"></param> /// <param name="userId"></param> /// <param name="deleteReason"></param> public void DeleteLabOrder(int labOrderId, int userId, string deleteReason) { LabOrderRepository repo = new LabOrderRepository(); LabOrder order = repo.Find(labOrderId); order.DeletedBy = userId; order.DeleteReason = deleteReason; repo.Delete(order); }
/// <summary> /// /// </summary> /// <param name="labOrderId"></param> /// <param name="userId"></param> /// <param name="deleteReason"></param> public void DeleteLabOrder(int labOrderId, int userId, string deleteReason) { LabOrderRepository repo = new LabOrderRepository(); LabOrder order = repo.Find(labOrderId); order.DeletedBy = userId; order.DeleteReason = deleteReason; repo.Delete(order); ClsObject obj = new ClsObject(); ClsUtility.Init_Hashtable(); ClsUtility.AddExtendedParameters("@LabOrderId", SqlDbType.Int, labOrderId); int rowCount = (int)obj.ReturnObject(ClsUtility.theParams, "PatientLabTracker_Delete_LabOrder", ClsUtility.ObjectEnum.ExecuteNonQuery); }